/**
 * 打开选择配置项的对话框
 * 
 * 
 * */
function selectCiDialog(url){
	 //var url = url + "?orderId="+ orderId +"&ciMode="+ciMode + "&mutiple=" + (mutiple || false);
	 var selectWin=window.open(url,'selectWin','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,titlebar=0,width=800,height=500');
	 selectWin.focus();
}

/**
** random
**/
function fRandomBy(under, over){ 
    switch(arguments.length){ 
        case 1: return parseInt(Math.random()*under+1); 
        case 2: return parseInt(Math.random()*(over-under+1) + under);  
        default: return 0; 
    } 
}

function openSelectDialog(url){
	var nowD = new Date();
	var key = nowD.getDate()+nowD.getDay()+nowD.getTime() + fRandomBy(0,100);
	 		
	var winDialog=window.open(url,'winDialog'+key,'fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,titlebar=0,width=' + (window.screen.availWidth - 10) + ',height=' + window.screen.availHeight);
	winDialog.focus();
	winDialog.moveTo(0,0);
}

function combParam(list){
	var param = "";
	for(var i = 0; i < list.length; i++){
		param += list[i].value + ",";
	}
	param = param.substring(0,param.length -1);
	return param;
}